package com.ds.lens.data.kafka;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Description:
 *
 * @author WeiShaoying
 * @date 2019-07-01
 */

@Component
@Slf4j
public class KafkaConsumer {

    /**
     * 监听topic,有消息就读取
     * 测试
     */
//    @KafkaListener(topics = {"lens-kafka-tony-test-topic"})
    public void consumer(String message){
        log.info("lens-kafka-tony-test-topic topic message : {}", message);
    }
}
